import edu.princeton.cs.algs4.*;
import java.util.Arrays;

public class NullPointer {
    public static void main(String[] args) {
        Counter[] a = new Counter[2];
        for (Counter i: a)
            i = new Counter("");
        a[0].increment();
    }
}
